<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1" session="true"%>
<%@ taglib prefix="s" uri="/struts-tags"%>

	<div id="header">
		<div class="logo"><a href='<s:url value="/"/>'><img src='<s:url value="/frontend/resources/images/logo.png"/>' alt="" /></a></div>
		<div class="top_nav">
				<s:set name="loginId" value="#session.logined"/>
       			<s:set name="uuid" value="#session.uuid"/>
       			<s:set name="userType" value="#session.bp.usertype"/>
			<ul>
       			<s:if test="%{(#userType == 2)}">
       				<li><a href="manageProperty?userId=${bp.uuid}">Manage Property</a></li>
       			</s:if>
       			
				<s:if test="%{(#loginId=='true')}">
					<s:if test="%{(#userType == 3)||(#userType == 2)}">
					<li><a href="accountInfo?uuid=${uuid}">Profile</a></li>				
				    <li ><s:a href='myProperties?uuid=%{uuid}'>My Properties</s:a></li>
					<li class="last"><a href="doOwnerLogout">Logout</a></li>
					</s:if>
					<s:else><li><a href="tavellerProfile?uuid=${uuid}">Profile</a></li>				
					<li class="last"><a href="doTravellerLogout">Logout</a></li>
					</s:else>
				</s:if>
				
				<s:else>
				<li><a href="travellerLogin">Traveller Sign In</a></li>
				<li><a href="ownerLogin">Owner Sign In</a></li>
				<li class="last"><a href="#">About Us</a></li>
				</s:else>
				
			</ul>
		</div>
		<div class="nav">
			<ul>
				<li><a href="#">Find a Rental</a></li>
				<li><a href="#">Deals</a></li>
				<li><a href="#">Events</a></li>
				<li><a href="#">Advertise with Us</a></li>
			</ul>
			<div class="search">
				<input name="Search" class="srch_box" placeholder="Search" type="text" /> <input name="Searchbtn" class="srch_btn"  value="Search" type="button"  />
			</div>
		</div>
	</div>
